//
//  TTCoreUI.h
//  Tint
//
//  Created by Kevin Wu on 2/22/12.
//  Copyright (c) 2012 Telligenty. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

/*
 * Autoresizing mask
 */
extern const NSUInteger TTViewAutoresizingKeepSize;
extern const NSUInteger TTViewAutoresizingKeepMargin;

/*
 * Orientation
 */
UIDeviceOrientation TTDeviceOrientation();
UIInterfaceOrientation TTInterfaceOrientation();

BOOL TTIsDevicePortrait();
BOOL TTIsDeviceLandscape();
BOOL TTIsInterfacePortrait();
BOOL TTIsInterfaceLandscape();

BOOL TTIsSupportedOrientation(UIInterfaceOrientation orientation);
CGAffineTransform TTRotateTransformForOrientation(UIInterfaceOrientation orientation);
CGAffineTransform TTRotateTransformForSupportedOrientation(UIInterfaceOrientation orientation);

/*
 * Keyboard
 */
BOOL TTIsKeyboardVisible();
UIView *TTFindFirstResponderInView(UIView *topView);

